<?php
ob_start();
session_start(); 
ob_clean();
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage web_doanh_nghiep
 * @since web_doanh_nghiep 1.0
 */
 $uri = "http://" . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
 $home = get_option('home').'/';
 get_page_link(85)
 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php bloginfo('title');?></title>
<meta content="<?php bloginfo('description');?>" name="keywords" />
<link href="<?php bloginfo("template_directory"); ?>/_css/reset.css" rel="stylesheet" type="text/css">
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style.css" rel="stylesheet" type="text/css">
<link href="<?php bloginfo("template_directory"); ?>/_css/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css">

<link href="<?php bloginfo("template_directory"); ?>/_css/lightbox.css" rel="stylesheet" type="text/css">
<?php if($uri==($home)){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_0.css" rel="stylesheet" type="text/css">
<?php }elseif($uri== get_page_link(85)){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_2.css" rel="stylesheet" type="text/css">
<?php }elseif($uri== get_page_link(134) || get_query_var('page_id')==134 || get_query_var('news') !="" || get_query_var('danh_muc_tin_tuc_su_kien')!=""){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_4.css" rel="stylesheet" type="text/css">
<?php }elseif($uri== get_page_link(91) || get_query_var('danh_muc_thu_vien_anh') !="" ||$uri== get_page_link(193) || $uri== get_page_link(195)|| $uri== get_page_link(197)){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_5.css" rel="stylesheet" type="text/css">

<?php }elseif(get_query_var('gioi_thieu')!=""){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_3.css" rel="stylesheet" type="text/css">

<?php }elseif($uri== get_page_link(235) || get_query_var('page_id')==235){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_6.css" rel="stylesheet" type="text/css">

<?php }else{?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_1.css" rel="stylesheet" type="text/css">
<?php } ?>
<script type="text/javascript" src="<?php bloginfo("template_directory"); ?>/_js/jquery.js"></script>
<script src="<?php bloginfo("template_directory"); ?>/_js/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php bloginfo("template_directory"); ?>/_js/jquery.lightbox-0.5.pack.js" type="text/javascript"></script>

<script type="text/javascript" src="<?php bloginfo("template_directory"); ?>/_js/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php bloginfo("template_directory"); ?>/_js/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo("template_directory"); ?>/_js/jquery.fancybox-1.3.4.css" media="screen" />

<script type="text/javascript">
		$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a#example1").fancybox();


		});
	</script>
<script src="<?php bloginfo("template_directory"); ?>/_js/jquery.lightbox.js" type="text/javascript"></script>

<script language="javascript">
	// <![CDATA[
	$(document).ready(function () {
	$('.tab_product').tabify();
    $('.tab_products').tabify();
	$('#tab_new').tabify();
	});				
	// ]]>
</script>
<script type="text/javascript">
    $(function() {
        $('#gallery a').lightBox();
    });
	
</script>

<script language="javascript">
/*
function HamThoiGian(){
// Khoi tao doi tuong thoi gian.
var ThoiGian = new Date(); // Kh?i t?o d?i tu?ng Date.
var Thu = ThoiGian.getDay();
var Ngay = ThoiGian.getDate(); // L?y gi? t? d?i tu?ng Date.
var Thang = ThoiGian.getMonth()+1; // L?y gi? t? d?i tu?ng Date.
var Gio = ThoiGian.getHours(); // L?y gi? t? d?i tu?ng Date.
var Phut = ThoiGian.getMinutes(); // L?y phút t? d?i tu?ng Date.
var Giay = ThoiGian.getSeconds(); // L?y giây t? d?i tu?ng Date
// Thêm s? 0 vào tru?c s? ch? th?i gian n?u nhu nó nh? hon 10.

var ThuName = new Array(7);
	ThuName[0]="Chủ nhật ";
	ThuName[1]="Thứ 2 - ";
	ThuName[2]="Thứ 3 - ";
	ThuName[3]="Thứ 4 - ";
	ThuName[4]="Thứ 5 - ";
	ThuName[5]="Thứ 6 - ";
	ThuName[6]="Thứ 7 - ";

if(Gio<10){
Gio="0"+Gio;}
if(Phut<10){
Phut="0"+Phut;}
if(Giay<10){
Giay="0"+Giay;}
// Xu?t k? qu? ra m?c nh?p van b?n có tên MucVB
if (ThoiGian.getYear()<2000) var Nam = ThoiGian.getYear()+1900;
else var Nam = ThoiGian.getYear();
document.BM1.MucVB.value=ThuName[Thu]+Ngay+"/"+Thang+"/"+Nam+" - "+Gio+":"+Phut+":"+Giay;
// G?i l?i hàm HamThoiGian sau m?i m?t giây trôi qua.
}
setInterval("HamThoiGian()",1000); // S? d?ng setInterval d? g?i l?p di l?p l?i hàm HamThoiGian sau 1 giây.
*/
</script>
<link rel="icon" type="image/icon" href="favicon.ico">
<!-- <script type="text/javascript" src="_js/jquery.js"></script> -->
<!--[if IE 6]>
	<script type="text/javascript" src="_js/unitpngfix.js"></script>
<![endif]-->
</head>
<!--[if gte IE 8]>
<body class="ie8">
<![endif]-->
<!--[if IE 7]>
<body class="ie7">
<![endif]-->
<!--[if IE 6]>
<body class="ie6">
<![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<body>
<script type="text/javascript">
$(document).ready(function() {
//Jquery codes go here
});
</script>
<div class="cy-w-header-top">
	<div class="cy-header-top">
		<div class="cy-logo">
        <a href="<?php bloginfo('url')?>"><img src="<?php bloginfo("template_directory"); ?>/_img/logo.png" /></a>
        </div><!--cy-logo-->   
        <ul>
            <li><a href="<?php bloginfo('url');?>">Trang chủ</a></li>
            <li><a href="<?php echo  get_page_link(85);?>">Liên hệ</a></li>
            <li><a href="#">Sitemap</a></li>
        </ul>
    </div><!--cy-header-top-->
</div><!--cy-header-top-->
<div class="cy-w-header">
    <div class="cy-header">
     <ul id="topnav">
     	<li <?php if(is_front_page()) echo 'class="active"' ?>><a href="<?php bloginfo('url');?>">Trang chủ</a></li> 
        <li <?php if(isset($_GET["gioi_thieu"])) echo 'class="active"';?>><a href="">Giới thiệu</a>
        <ul class='children' >
         <?php
            	$loop = new WP_Query(array('post_type'=>'gioi_thieu','posts_per_page'=>10,'order'=>'ASC'));?>
                <?php while ( $loop->have_posts() ) : $loop->the_post(); //bat dau vong lap ?>
                <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li>
                <?php endwhile; //ket thuc vong lap ?>
                <?php wp_reset_query();?>
        </ul>
        </li> 
        <li <?php if(is_page('235')) echo 'class="active"';?>><a href="<?php echo get_page_link(235);?>">Giải pháp</a></li>
        <li <?php if(is_page('87') || isset($_GET["danh_muc_san_pham"])) echo 'class="active"';?>><a href="<?php echo  get_page_link(87);?>">Sản phẩm</a>
         <?php
			echo "<ul class='children' >"; 
					echo wp_list_categories(
					array(

						'taxonomy' => 'danh_muc_san_pham', // Registered tax name
						'orderby'  => 'ID',
   						'order'    => 'ASC',
						'parent' =>8,
						'show_count' => false,
						'hierarchical' => true,
						'title_li' => __( '' ),
						'style' => 'list',
						'echo' => '1',
					));
					echo "</ul>";
					?>
        </li> 
        <li <?php if(is_page('134') || isset($_GET["danh_muc_tin_tuc_su_kien"])) echo 'class="active"';?>><a href="<?php echo get_page_link(134);?>">Tin tức & sự kiện</a>
         <?php
			echo "<ul class='children' >"; 
					echo wp_list_categories(
					array(

						'taxonomy' => 'danh_muc_tin_tuc_su_kien', // Registered tax name
						'orderby'  => 'ID',
   						'order'    => 'ASC',
						'show_count' => false,
						'hierarchical' => true,
						'title_li' => __( '' ),
						'style' => 'list',
						'echo' => '1',
					));
					echo "</ul>";
        ?>
        </li> 
        <li <?php if(is_page('193') || is_page('195') || is_page('197') ) echo 'class="active"';?>>
            <a href="#">Thư viện</a>
			<ul class='children' >
                <li><a href="<?php echo get_page_link(193);?>">Hình ảnh</a></li>
                <li><a href="<?php echo get_page_link(195);?>">Video</a></li>  
                <li><a href="<?php echo get_page_link(197);?>">Download tư liệu</a></li>          
			</ul>
        </li> 
        <li <?php if(is_page('85')) echo 'class="active"';?>><a href="<?php echo  get_page_link(85);?>">Liên hệ</a></li> 
     </ul>
     <div class="cy-banner">
     </div><!--cy-banner-->
    </div><!--cy-header-->
</div><!--cy-w-header-->